--------------------------------------------------------
--  DDL for Trigger PCR_DATA_WORKSHEET_PK_TRG
--------------------------------------------------------

  CREATE OR REPLACE TRIGGER "PCR_DATA_WORKSHEET_PK_TRG" 
  BEFORE INSERT ON "PCR_DATA_WORKSHEET"
  REFERENCING FOR EACH ROW
  begin  
   if inserting then 
      if :NEW."PCRDWID" is null then 
         select PCR_SEQ.nextval into :NEW."PCRDWID" from dual; 
      end if; 
   end if; 
end;
ALTER TRIGGER "PCR_DATA_WORKSHEET_PK_TRG" ENABLE
